package com.ldxiwxr.system.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.ldxiwxr.system.entity.article.Link;
import com.ldxiwxr.system.mapper.LinkMapper;
import com.ldxiwxr.system.service.ILinkService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class LinkServiceImpl implements ILinkService {

    @Resource
    private LinkMapper linkMapper;

    @Override
    public List<Link> getLinks() {
       return linkMapper.selectList(Wrappers.lambdaQuery());
    }

}
